package com.own.component.util.excel.util.read.function.resolve;

import com.own.component.util.excel.util.read.base.BaseFunction;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Sheet;

import java.util.List;
import java.util.function.Function;

/**
 * CustomResolveFunction
 *
 * @author chenxueli
 * @date 2022-09-23 10:31:00
 */
@FunctionalInterface
public interface CustomResolveFunction<T> extends BaseFunction {

    /**
     * 自定义解析方法
     *
     * @param sheet    工作表
     * @param getValue 获取单元格的值
     * @return 解析后的对象列表
     */
    List<T> run(Sheet sheet, Function<Cell, String> getValue);

}